package com.gl.saasservice.repository;

import com.gl.saasservice.entity.DepartmentRoleRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DepartmentRoleRecordRepository extends JpaRepository<DepartmentRoleRecord, Long>, JpaSpecificationExecutor<DepartmentRoleRecord> {
    @Transactional
    void deleteByPermissionIdIn(List<Long> permissionsIds);
}
